<%--
  Created by IntelliJ IDEA.
  User: LV
  Date: 2016/7/4
  Time: 9:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>订单发货</title>
    <script>
        $(function () {
            $.getJSON("${ctx}/order/getAllShippingCompany", function(json){
                for(var i in json){
                    $("#shipping").append("<option value='" + json[i].code + "'>" + json[i].name + "</option>");
                }
            });

            //提交表单
            $("#form-submit").click(function () {
                $("#shipping-name").val($("#shipping option:selected").text());
                $("#shipping-form").submit();
            });
        });
    </script>
</head>

<body>
<div class="navigation">
    <div class="crumbs ">
        <i class="tm-iconfont icon-info"></i>
        <a href="#">卖家中心</a><span>&gt;</span><a href="#200">交易管理</a><span>&gt;</span>订单发货
    </div>
    <div class="help">
        <a href="#" target="_blank">卖家交易学习专区</a>
    </div>
</div>
<!--订单详情 star-->
<div class="order_details">
    <div class="p10 b-fffcf3 la-ffcc66">
        <div class="p-l20">
            <div class="fs14">当前订单状态：等待发货</div>
            <div class="c-FF0000">联城提醒您</div>
            <div><span class="c-999999">请认真填写发货信息</span></div>
        </div>
    </div>
    <!--star 发货-->
    <div class="mtc_box m-t20 line-all b-F5F5F5">
        <div class="mt line-bottom p-lr10 fs14">订单信息</div>
        <!--mc star-->

        <div class="mc b-FFFFFF p10">
            <!--star 01-->
            <p>收货地址 ：${order.consigneeName}，${order.buyerUserPhone}，${order.provinceName} ${order.cityName} ${order.districtName} ${order.streetName} ${order.address}</p>
            <div class="u_tableform">

                <form id="shipping-form" action="${ctx}/order/savingShippingInfor" method="post">
                    <input type="hidden" name="oid" value="${order.orderId}"/>
                    <input type="hidden" name="name" id="shipping-name">

                <div class="item">
                    <label class="label tar">物流公司：</label>
                    <div class="cont_txt">
                        <select class="text w172 m-r10" id="shipping" name="code" >
                            <optgroup value="请选择物流公司">请选择物流公司</optgroup>
                        </select>
                    </div>
                </div>
                <div class="item">
                    <label class="label tar">快递单号：</label>
                    <div class="cont_txt">
                        <input type="text" class="text w150" value="" name="num"/>
                    </div>
                </div>
                </form>

                <div class="item">
                    <label class="label tar">&nbsp;</label>
                    <div class="cont_txt">
                        <button class="i_btn u2 p-lr50" id="form-submit">确认发货</button>
                    </div>
                </div>
            </div>
            <!--end 01-->
        </div>

        <!--mc end-->
    </div>
    </div>
<!--订单详情 end -->
</body>
</html>
